package cn.itcast.com.String;
/*
public String() 无参构造创建字符串对象，该字符串对象，代表字符序列
 */
public class demo {
    public static void main(String[] args) {
        String str = new String();
        System.out.println(str);

        String str1 = null;
        System.out.println(str1);

        byte[] bytes = {97,98,99,100};
        String str2 = new String(bytes);
        System.out.println(str2);

        String str3 = new String(bytes,1,3);
        System.out.println(str3);

        char[] b = {'a','b','c','d'};
        String str4 = new String(b,1,3);
        System.out.println(str4);
    }
}
